package com.suse.warmstill.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author 黄靖
 * @since 2022-10-19
 */
@Getter
@Setter
@TableName("tb_menu")
@ApiModel(value = "TbMenu对象", description = "")
public class TbMenu implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("模块名称")
    private String name;

    @ApiModelProperty("请求路径")
    private String path;

    private String redirect;

    @ApiModelProperty("是否隐藏权限")
    @TableLogic
    private int isHidden;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("模块的父模块")
    private Integer parentId;

    @ApiModelProperty("和name一致")
    private String title;


}
